package cn.schoolwow.ams.module.router.domain;

import cn.schoolwow.ams.domain.block.router.RouterBlock;

import java.util.HashMap;
import java.util.Map;

public class BlockRouterPush {
    /**
     * 按钮名称
     * */
    public String label;

    /**
     * 块标签名称
     * */
    public String name;

    /**
     * 块唯一名称
     * */
    public String uniqueKey;

    /**
     * 跳转参数列表
     * */
    public Map<String,String> sourceTargetFieldNameMap = new HashMap<>();

    public BlockRouterPush(String label, RouterBlock routerBlock) {
        this.label = label;
        this.name = routerBlock.getMenuName();
        this.uniqueKey = routerBlock.getBlockUniqueName();
    }

    public BlockRouterPush(String label, String name, String uniqueKey) {
        this.label = label;
        this.name = name;
        this.uniqueKey = uniqueKey;
    }
}
